package com.chixing.service.impl;

import com.chixing.entity.DishType;
import com.chixing.mapper.DishTypeMapper;
import com.chixing.service.IDishTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yebken.
 * @since 2025-06-25
 */
@Service
public class DishTypeServiceImpl implements IDishTypeService {

    @Autowired
    private DishTypeMapper dishTypeMapper;

    @Override
    public List<DishType> getAll() {
        List<DishType> dishTypeList = dishTypeMapper.selectList(null);
        return dishTypeList;
    }
}
